package com.charlotte.study.gupao.chain.auth.builderchain;

import com.charlotte.study.gupao.chain.auth.genera.Member;

/**
 * @author junjie.ding
 * @date 2020/3/16
 */
public class MemberService {

    public void login(String loginName,String loginPass){

        Handler.Builder builder = new Handler.Builder();

        builder.addHandler(new ValidateHandler())
                .addHandler(new LoginHandler())
                .addHandler(new AuthHandler());

        builder.build().doHandler(new Member(loginName,loginPass));


        //用过Netty的人，肯定见过
    }
}
